package com.azzaou.service.impl;

import java.util.ArrayList;
import java.util.List;

import com.azzaou.dao.IClientDao;
import com.azzaou.model.Client;
import com.azzaou.service.IClientService;

public class ClientService implements IClientService {

	IClientDao clientDao;
	
	@Override
	public List<Client> getClientByCriteria(Client client) {
		return clientDao.getClientByCriteria(client);
	}

	@Override
	public void saveOrUpdate(Client employe) {
		clientDao.saveOrUpdate(employe);
	}

	@Override
	public void remove(Client employe) {
		clientDao.remove(employe);
	}

	@Override
	public Client getClientById(Long id) {
		return clientDao.getClientById(id);
	}

	public IClientDao getClientDao() {
		return clientDao;
	}

	public void setClientDao(IClientDao clientDao) {
		this.clientDao = clientDao;
	}

	@Override
	public List<Client> getAllClients() {
		return clientDao.getAllClients();
	}

}
